/**
 * Created by admin on 2016/10/10.
 */
import axios from 'axios';

//封装好的get和post接口，调用方法情况action文件
const api = axios.create({
    baseURL: 'http://api.51zy.org/zhihu_daily/api/4', //设置默认api路径
    withCredentials: true,
    timeout: 5000,
    headers: {'X-Requested-With': 'XMLHttpRequest'}
});

export default api;